import random

class StandardTiming( object ):
    def __init__(self , deviation = 0.05 , normal = 0.1 ):
        self.normal = normal
        self.deviation = deviation
    def getMod( self ):
        return random.gauss( self.normal , self.deviation )
        
class BangOn( StandardTiming ):
    def __init__(self):
        pass
    def getMod( self ):
        return 0
        
class BehindTheBeat( StandardTiming ):
    def __init__(self , deviation = 0.05 , normal = 0.1 ):
        self.normal = normal
        self.deviation = deviation
    def getMod( self ):
        return -abs( random.gauss( self.normal , self.deviation ) )
        
if __name__ == '__main__':
    timings = [ StandardTiming( 1 ) , BehindTheBeat( 1 ) ]
    for timemod in timings:
        for idx in range( 0 , 20 ):
            print timemod.getMod()
